package com.hznc.wcs.entity.flow;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.entity.BaseModel;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
* 流程配置 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-11-25
* Copyright © MyCorp
*/
@TableName("mdl_bpm_service_config")
@Getter @Setter @Accessors(chain = true)
public class BpmServiceConfig extends BaseModel {
    private static final long serialVersionUID = 1311820857354855242L;
     /**
     * 租户
     */
//     @NotNull(message = "租户不能为空")
//     @TableField()
//     private String tenantId;

     /**
     * 名称
     */
     @Length(max=100, message="名称长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String name;

     /**
     * 业务模块
     */
     @TableField()
     private String businessModule;

     /**
     * 配置类型
     */
     @Length(max=100, message="配置类型长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String types;

     /**
     * 配置类全类名
     */
     @Length(max=100, message="配置类全类名长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String classPath;

     /**
     * 参数
     */
     @Length(max=100, message="参数长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String params;

     /**
     * 值
     */
     @Length(max=100, message="值长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField(value = "`value`")
     private String value;

     /**
     * 表达式
     */
     @Length(max=100, message="表达式长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String delegateExpression;

     /**
     * 描述
     */
     @Length(max=100, message="描述长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField(value = "`desc`")
     private String desc;


}